/**
 * Created by admin on 2017/6/29.
 */

import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  header:[],
  actionHeader:{},
  count: 1
}
console.log(state.actionHeader);
const mutations = {
  CLICK_THIS (state) {
    console.log(state.header)
    state.actionHeader = state.actionHeader

  },
  increment (state) {
    // 变更状态
    state.count++
  },

}


export default new Vuex.Store({
  state,
  mutations
})
